<?php
class LangueLabel{
	private $id;
	private $isoTraduction;
	private $label;
	private $langueId;
	function __construct($id) {

		if (is_int($id)){
			if($id >= 0){
				$this->id=$id;
			}else{
				throw new FieldFormatException($_SESSION['translator']->idVal);
			}
		}else{
			throw new FieldFormatException($_SESSION['translator']->idInt);
		}
	}
	public function getId(){
		return $this->id;
	}
	public function setIsoTraduction($iso){
		$this->isoTraduction = $iso;
	}
	public function getlangueId(){
		return $this->langueId;
	}
	public function setlangueId($id){
		if (is_int($id)){
			if($id > 0){
				$this->id=$id;
			}else{
				throw new FieldFormatException($_SESSION['translator']->idVal);
			}
		}else{
			throw new FieldFormatException($_SESSION['translator']->idInt);
		}
	}
	public function getIsoTraduction(){
		return $this->isoTraduction;
	}
	public function getLabel(){
		return $this->label;
	}
	public function setLabel($label){
		$this->label = $label;
	}
}
?>